//
//  PrimaryKindCell.m
//  XDCommonApp
//
//  Created by XD-XY on 7/17/14.
//  Copyright (c) 2014 XD-XY. All rights reserved.
//

#import "PrimaryKindCell.h"

@implementation PrimaryKindCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor clearColor];
        [self makeViews];
    }
    return self;
}

-(void)makeViews
{
    self.contentLB = [UILabel initLabelRect:CGRectMake(5, 17.5f, 60, 40) andBackGroudColor:[UIColor clearColor] andTextFont:[UIFont systemFontOfSize:14] andTextColor:[UIColor blackColor] andTextAlignment:NSTextAlignmentCenter];
    _contentLB.numberOfLines = 2;
    [self.contentView addSubview:_contentLB];
    
    //cell未选中效果
    self.disSelectBg = [[UIImageView alloc] init];
    _disSelectBg.frame = CGRectMake(0, 0, self.frame.size.width,self.frame.size.height);
    UIImage * image = [UIImage imageNamed:@"typeBg_nor"];
    _disSelectBg.image = image;
    self.backgroundView = _disSelectBg;
    
    //cell选中效果
    self.selectBg = [[UIImageView alloc] init];
    _selectBg.frame = CGRectMake(0, 0, self.frame.size.width,self.frame.size.height);
    UIImage * image2 = [UIImage imageNamed:@"typeBg_sel"];
    _selectBg.image = image2;
    self.selectedBackgroundView = _selectBg;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

@end
